package com.jiegui.business.service.impl;

import java.util.List;
import com.jiegui.common.utils.DateUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.jiegui.business.mapper.GoodsOrderInfoMapper;
import com.jiegui.business.domain.GoodsOrderInfo;
import com.jiegui.business.service.GoodsOrderInfoService;

/**
 * 商品订单Service业务层处理
 * 
 * @author wuqicheng
 * @date 2024-11-20
 */
@Service
public class GoodsOrderInfoServiceImpl extends ServiceImpl<GoodsOrderInfoMapper, GoodsOrderInfo> implements GoodsOrderInfoService
{
    @Resource
    private GoodsOrderInfoMapper goodsOrderInfoMapper;

    /**
     * 查询商品订单
     * 
     * @param id 商品订单主键
     * @return 商品订单
     */
    @Override
     public GoodsOrderInfo selectGoodsOrderInfoById(String id)
    {
        return goodsOrderInfoMapper.selectById(id);
    }

    /**
     * 查询商品订单列表
     * 
     * @param goodsOrderInfo 商品订单
     * @return 商品订单
     */
    @Override
    public List<GoodsOrderInfo> selectGoodsOrderInfoList(GoodsOrderInfo goodsOrderInfo)
    {
        return goodsOrderInfoMapper.selectGoodsOrderInfoList(goodsOrderInfo);
    }

    /**
     * 新增商品订单
     * 
     * @param goodsOrderInfo 商品订单
     * @return 结果
     */
    @Override
    public  int insertGoodsOrderInfo(GoodsOrderInfo goodsOrderInfo)
    {
        return goodsOrderInfoMapper.insert(goodsOrderInfo);
    }

    /**
     * 修改商品订单
     * 
     * @param goodsOrderInfo 商品订单
     * @return 结果
     */
    @Override
    public  int updateGoodsOrderInfo(GoodsOrderInfo goodsOrderInfo)
    {

        return goodsOrderInfoMapper.updateById(goodsOrderInfo);
    }




}
